home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
PCTV3N3
/
STRNDEL.C
< prev
next >
Wrap
Text File
|
1992-04-09
|
229b
|
9 lines
/* strndel:
delete n characters from string s starting at position p. */
void strndel(char *s, int p, int n)
{
for(; (*(s+p) = *(s+p+n)) != '\0';s++)
*(s+p+n) = '\0'; /* delete and zero-fill */
}